home *** CD-ROM | disk | FTP | other *** search
- Path: rain.fr!world-net!usenet
- From: Frederic LACHASSE <lachass@worldnet.fr>
- Newsgroups: comp.lang.c++
- Subject: Re: ***Please Help*** getch() and cin
- Date: Mon, 22 Jan 1996 21:55:32 +0000
- Organization: World-Net information exchange, Internet provider.
- Message-ID: <VA.0000000f.002f4f8e@fred>
- References: <4dr79f$3e7@news.cencom.net>
- Reply-To: lachass@worldnet.fr
- NNTP-Posting-Host: client122.sct.fr
- X-Newsreader: Virtual Access by Ashmount Research Ltd, http://www.ashmount.com
-
- wsenn@cencom.net (Will Senn) wrote:
- > I would appreciate it if someone could tell me if there is a
- > way to make cin read input without line buffering (waiting for the
- > carriage return)? I know all about getch() in conio.h, however I
- > would prefer sticking to stream input included in iostream.h. Any
- > help along these lines would be greatly appreciated.
- >
- > Before anyone freaks, I spent several hours with the various
- > search engines on the web as well as looking through a ton of related
- > newsgroups before I posted this seemingly obvious question. The
- > closest I came to an answer was a reference to a FAQ 309, a
- > depressingly hard to find faq, quoted in the C++ Faq. Not only that
- > but this is the second time I've posted this note!
-
- The bad news is: functions in conio.h are non-standard, and the standard
- iostream.h did not have this functionality. More over, such functions
- are OS dependent and often done quite differently from one system to the
- other, when it is possible (I don't think it's possible with 3270
- terminals for example).
-
- So I'm afraid you're stuck with the non-standard stuff and you'll better
- tell which system you use with which compiler (and perhaps post in a
- more pertinent newsgroup as well). For example: for MS-DOS and Win32
- console program (Windows 95 and NT) and the Borland C++ compiler, you
- can use the constream.h stuff.
-
- I nevertheless hope this'll help.
-
- Frederic LACHASSE (ECP 86)
- CompuServe: 100530,2005
- Internet: lachass@worldnet.fr
-
-